#导包
import requests

#准备测试数据
url = "https://www.baidu.com"

#发http请求，保存结果
response = requests.get(url)

#打印状态码和文本(response body)
print(response.status_code)
print(response.text)
